//
//  GlobalHeader.h
//  我的等级
//
//  Created by 田涛 on 2017/9/29.
//  Copyright © 2017年 Lemon. All rights reserved.
//

#ifndef GlobalHeader_h
#define GlobalHeader_h
#import <SDAutoLayout.h>
#import "SCChart.h"

//获取屏幕 宽度、高度
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

//基于7适配其他尺寸
#define HeightScale_IOS7(height) ((height/667.0) * SCREEN_HEIGHT)
#define WidthScale_IOS7(width) ((width/375.0) * SCREEN_WIDTH)

//设置颜色
#define RGB(R, G, B) [UIColor colorWithRed:((R) / 255.0f) green:((G) / 255.0f) blue:((B) / 255.0f) alpha:1.0f]
#define kUIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#endif /* GlobalHeader_h */
